<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
	<table>
	  <thead>
		  <tr>
			<th><%=t('activerecord.attributes.bookshop.name')%></th>
			<th><%=t('activerecord.attributes.bookshop.acronym')%></th>
			<th><%=t('activerecord.attributes.bookshop.ftp')%></th>
			<th><%=t('activerecord.attributes.bookshop.discount')%></th>
			<th><%=t('activerecord.attributes.bookshop.shipping_cost')%></th>
			<th><%=t('activerecord.attributes.bookshop.cboxp')%></th>
			<th><%=t('activerecord.attributes.bookshop.cboxt')%></th>
			<th><%=t('activerecord.attributes.bookshop.cboxc')%></th>
			<th><%=t('activerecord.attributes.bookshop.currency')%></th>
			<th colspan="3"><%= t('title_actions') %></th>
		  </tr>
	  </thead>
	  <tbody>
		<% @bookshops.each do |bookshop| %>
		  <tr>
			<td><%=h bookshop.name %></td>
			<td><%=h bookshop.acronym %></td>
			<td><%=h bookshop.ftp %></td>
			<td><%=h bookshop.discount %></td>
			<td><%=h bookshop.shipping_cost %></td>
			<td><%=h bookshop.cboxp %></td>
			<td><%=h bookshop.cboxt %></td>
			<td><%=h bookshop.cboxc %></td>
			<td><%=h bookshop.currency.name %></td>
			<td class="action"><%= link_to t('btn_show'), bookshop %></td>
			<td class="action"><%= link_to t('btn_edit'), edit_bookshop_path(bookshop) %></td>
			<td class="action"><%= link_to t('btn_destroy'), bookshop, :confirm => 'Are you sure?', :method => :delete %></td>
		  </tr>
		<% end %>
	  </tbody>
	</table>
  </div>
  <div class="portlet-footer">
	<%= link_to t('bookshops.index.btn_new_institute'), new_bookshop_path %>
  </div>
</div>

